#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QWidget>
#include <DBlurEffectWidget>
#include <QTimer>
#include <QToolButton>
#include <QKeyEvent>
#include <QMouseEvent>
DWIDGET_USE_NAMESPACE
class MainWindow : public DBlurEffectWidget
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QToolButton *btn_shutdown=new QToolButton;
    QToolButton *btn_reboot=new QToolButton;
    QToolButton *btn_suspend=new QToolButton;
    QToolButton *btn_lock=new QToolButton;
    QToolButton *btn_logout=new QToolButton;
    void close(QString);
    void mousePressEvent(QMouseEvent *);
    void keyPressEvent(QKeyEvent *event);
};

#endif // MAINWINDOW_H
